﻿using DataServer.Entities;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataServer.Utils
{
    public class BankUtils
    {
        public static string GetBankList()
        {
            List<Bank> bankInfoList = new List<Bank>();
            Bank bank = new Bank();
            bank.BankCode = "00001";
            bank.BankName = "中国银行";
            bankInfoList.Add(bank);

            Bank bank2 = new Bank();
            bank2.BankCode = "00002";
            bank2.BankName = "建设银行";
            bankInfoList.Add(bank2);

            Bank bank3 = new Bank();
            bank3.BankCode = "00003";
            bank3.BankName = "农业银行";
            bankInfoList.Add(bank3);

            string json = JsonConvert.SerializeObject(bankInfoList);

            return json;
        }
    }
}
